/*
 *  Copyright (c) GBA-NCTI-ISDC. 2022-2024.
 *
 *  openGauss DataKit is licensed under Mulan PSL v2.
 *  You can use this software according to the terms and conditions of the Mulan PSL v2.
 *  You may obtain a copy of Mulan PSL v2 at:
 *
 *  http://license.coscl.org.cn/MulanPSL2
 *
 *  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 *  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 *  MERCHANTABILITY OR FITFOR A PARTICULAR PURPOSE.
 *  See the Mulan PSL v2 for more details.
 *  -------------------------------------------------------------------------
 *
 *  DatabaseTablespaceService.java
 *
 *  IDENTIFICATION
 *  plugins/data-studio/src/main/java/com/nctigba/datastudio/service/DatabaseTablespaceService.java
 *
 *  -------------------------------------------------------------------------
 */

package com.nctigba.datastudio.service;

import com.nctigba.datastudio.model.dto.DatabaseCreateTablespaceDTO;
import com.nctigba.datastudio.model.dto.DatabaseDorpTablespaceDTO;
import com.nctigba.datastudio.model.dto.DatabaseTablespaceAttributeDTO;
import com.nctigba.datastudio.model.dto.RequestTablespaceAttributeDTO;
import com.nctigba.datastudio.model.dto.UpdateTablespaceAttributeDTO;

/**
 * DatabaseUserService
 *
 * @since 2023-6-26
 */
public interface DatabaseTablespaceService {
    /**
     * create tablespace ddl
     *
     * @param request request
     * @return String
     */
    String createTablespaceDDL(DatabaseCreateTablespaceDTO request);

    /**
     * create tablespace
     *
     * @param request request
     */
    void createTablespace(DatabaseCreateTablespaceDTO request);

    /**
     * drop tablespace ddl
     *
     * @param request request
     */
    void dropTablespaceDDL(DatabaseDorpTablespaceDTO request);

    /**
     * tablespace attribute
     *
     * @param request request
     */
    DatabaseTablespaceAttributeDTO tablespaceAttribute(RequestTablespaceAttributeDTO request);

    /**
     * update tablespace attribute
     *
     * @param request request
     */
    void tablespaceUpdate(UpdateTablespaceAttributeDTO request);

    /**
     * update tablespace attribute ddl
     *
     * @param request request
     * @return String
     */
    String tablespaceUpdateAttributeDdl(UpdateTablespaceAttributeDTO request);
}
